<div id="formsuccess" style="display:none">{if isset($errors.status) && $errors.status == "success"}{$destPage->getEditUrl($destPage->getLang())}{/if}</div>
<form name="form" method="post" action="?module=backoffice&action=AjaxContext&href={$href}" class="nyroModal">
{t assignTo=title}Duplicate page{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$title}
    <div id="modalContent">
		<table class="listTable">
			<tr><td>{t}Language{/t} :</td><td>{$originalPage->getLang()}</td></tr>
			<tr><td>{t}Label{/t} :</td><td><input type="text" name="form[label]" value="{if isset($formValues.label)}{$formValues.label|escape:"html"}{/if}" style="width:300px" />{if isset($errors.label) && $errors.label}{icon name="warning.png"} {$errors.label}{/if}</td></tr>
			<tr>
                            <td>{t}Folder{/t} :</td>
                            <td>
                                <select name="form[folder]">
                                {foreach from=$formValues.folders item=doc}
                                    <option value="{$doc[0]}" {if $doc[0] == $formValues.folder}disabled="disabled"{/if}>{$doc[1]}</option>
                                {/foreach}

                                </select>
                                <!-- <input type="text" name="form[folder]" value="{$values.folder|escape:"html"}" style="width:300px" />{if $errors.folder}{icon name="warning.png"} {$errors.folder}{/if} -->
                            </td>
                        </tr>
		</table>
    </div>
{t assignTo=labelButton}Duplicate{/t}
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html" label=$labelButton}
</form>
